Setup for Sharing with DXL

In a module, is it possible to configure the "Setup for Sharing..." (Tools | Setup for Sharing... | Make editable sections at level: 4 | OK) with DXL code?
Boilermaker Jonny - Mon Jan 25 12:11:02 EST 2010

Re: Setup for Sharing with DXL
llandale - Mon Jan 25 13:50:31 EST 2010

On your computer, you could replace ...
This File:

C:\Program Files\IBM\Rational\DOORS\9.2\lib\dxl\standard\tools\sharing.dxl

with a file that does what you want; no doubt after renaming the existing file to perhaps 'sharing_Original.dxl'.

I dislike making that kind of change; just write your own and put it in the User menu.

  • Louie

Re: Setup for Sharing with DXL
Boilermaker Jonny - Tue Feb 02 15:40:41 EST 2010

llandale - Mon Jan 25 13:50:31 EST 2010
On your computer, you could replace ...
This File:

C:\Program Files\IBM\Rational\DOORS\9.2\lib\dxl\standard\tools\sharing.dxl

with a file that does what you want; no doubt after renaming the existing file to perhaps 'sharing_Original.dxl'.

I dislike making that kind of change; just write your own and put it in the User menu.

  • Louie

I am using DOORS 8.3 and would prefer not to use premade scripts. I've consulted the dxl manual and have not found anything related to this. Any other suggestions?

Re: Setup for Sharing with DXL
doors36677 - Tue Feb 02 16:47:18 EST 2010

Boilermaker Jonny - Tue Feb 02 15:40:41 EST 2010
I am using DOORS 8.3 and would prefer not to use premade scripts. I've consulted the dxl manual and have not found anything related to this. Any other suggestions?

There are probably just 3 options for sharing:

//1. Use the canned dxl provided with DOORS.
//2. Use a custom dxl.
//3. Throught the GUI change the permissions on the object to implement sharing (Possible but probably not practical.)

Re: Setup for Sharing with DXL
Boilermaker Jonny - Tue Feb 02 18:34:11 EST 2010

doors36677 - Tue Feb 02 16:47:18 EST 2010

There are probably just 3 options for sharing:

//1. Use the canned dxl provided with DOORS.
//2. Use a custom dxl.
//3. Throught the GUI change the permissions on the object to implement sharing (Possible but probably not practical.)

I realize that. Would you happen to know the dxl for option #2 you specified?

Re: Setup for Sharing with DXL
Peter_Albert - Wed Feb 03 03:41:53 EST 2010

Boilermaker Jonny - Tue Feb 02 18:34:11 EST 2010
I realize that. Would you happen to know the dxl for option #2 you specified?

Attached is a script from the old forum. It displays a dialogue box where you can tick and untick individual sections to create and remove shareable edit. For sections at level 4 you select "Level: 4" in the drop-down list, then click "Check All" and then "Create sections". Note that this also creates sections at the levels above, which is necessary if you want to create new sections at Level 4 or above.

The DXL behind is simple, the two perms "specific(Object obj)" and "inherited(Object obj)" create and remove shareable sections.
Regards,

Peter
Attachments

attachment_14431814_setShare.dxl

Re: Setup for Sharing with DXL
Mathias Mamsch - Fri Feb 05 06:04:08 EST 2010

it is as simple as that:

for obj in entire current Module do {

Re: Setup for Sharing with DXL
Mathias Mamsch - Fri Feb 05 06:05:49 EST 2010

Mathias Mamsch - Fri Feb 05 06:04:08 EST 2010
it is as simple as that:

for obj in entire current Module do {

argh ... don't press "tab" and then "space" when you edit your post and type in code :-)
 

Object obj
for obj in entire current module do {
    if (level obj == 4) specific obj else inherited obj
}

 


or something like that.

 

Re: Setup for Sharing with DXL
llandale - Fri Feb 05 17:59:24 EST 2010

Mathias Mamsch - Fri Feb 05 06:05:49 EST 2010

argh ... don't press "tab" and then "space" when you edit your post and type in code :-)
 

Object obj
for obj in entire current module do {
    if (level obj == 4) specific obj else inherited obj
}

 


or something like that.

 

You probably want all the level 1/2/3/4 HEADINGS to be objects. You must exclude Table/Row/Cell objects.

  • Louie

Re: Setup for Sharing with DXL
Symbal92 - Mon Jun 12 16:02:44 EDT 2017

llandale - Fri Feb 05 17:59:24 EST 2010
You probably want all the level 1/2/3/4 HEADINGS to be objects. You must exclude Table/Row/Cell objects.

  • Louie

Hey Louie!

 

Can I so kindly bring this post back from the grave?

 

I follow the simple script from above, but in regards to your comment about Table/Row/Cell objects, you lost me.

are you saying as a personal preference that you wouldn't want to include table cells in this shareable access option?

or is that more of a statement on how you would want to setup your module before running this script?

 

I ran it and it seemed to do the trick, but my modules have thousands upon thousands of objects and tables, and just want to know if I need to append this script with something, or if this script does the same as the Tools>Setup for Sharing button and selecting (in this case) level 4.

 

Best Regards